<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div></div>
    <div></div>
    <div></div>
    <script>
        // 合并数组
        let a=['胡歌','彭于晏']
        let b=['侯卿','李星云']
        let c=[...a,...b]
        console.log(c);
        
        // 克隆数组 有引用类型就是浅拷贝没有就是完全拷贝
        // const d1=[...c]
        // console.log(d1);
        const d=['胡歌','彭于晏','侯卿','李星云']
        let v=[...d]
        console.log(v);
        // 伪数组变真
        let divs=document.querySelectorAll('div')
        console.log(divs);//伪数组
        let div=[...divs]
        console.log(div);
    </script>
</body>
</html>